<?php
		include("_config.php");
		$jasper_url = "http://localhost:8088/jasperserver-pro/services/repository";  
   		$jasper_username = "jasperadmin";  
   		$jasper_password = "jasperadmin";  
      
     
   		$client = new JasperClient($jasper_url, $jasper_username, $jasper_password);  
     
  		$report_unit = "/reports/samples/AllAccounts";  
  		$report_format = "PDF";  
 		//$report_params = array('foo' => 'bar', 'fruit' => 'apple');  
   
 		$result = $client->requestReport($report_unit, $report_format,"");  
    
  		header('Content-type: application/pdf');  
  		echo $result;  

?>